import request from '@/utils/request'

// 查询完工入库列表
export function listFinishinhou(query) {
  return request({
    url: '/mes/finishinhou/list',
    method: 'get',
    params: query
  })
}

// 查询完工入库详细
export function getFinishinhou(id) {
  return request({
    url: '/mes/finishinhou/' + id,
    method: 'get'
  })
}

// 新增完工入库
export function addFinishinhou(data) {
  return request({
    url: '/mes/finishinhou',
    method: 'post',
    data: data
  })
}

// 修改完工入库
export function updateFinishinhou(data) {
  return request({
    url: '/mes/finishinhou',
    method: 'put',
    data: data
  })
}

// 删除完工入库
export function delFinishinhou(id) {
  return request({
    url: '/mes/finishinhou/' + id,
    method: 'delete'
  })
}
// 入库
export function inHou(data) {
  return request({
    url: '/mes/finishinhou/inHou',
    method: 'post',
    data:data
  })
}
//质检
export function qualityInspection(id) {
  return request({
    url: '/mes/finishinhou/qualityInspection',
    method: 'post',
    params:id
  })
}